import { createApp } from 'vue'
import App from '../App.vue'
const app = createApp(App)
import * as filter from './filter'
// 输出的结果 ["hidePhone"] "filter"
console.log(Object.keys(filter), 'filter')
console.log(app)

Object.keys(filter).forEach(k => app.filter(k, filter[k]))
app.prototype.$hidePhone = app.filter('hidePhone')
